package com.bee.beemanage.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bee.beemanage.api.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author 陈国松
 * @since 2022-10-10
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 批量物理删除
     * @return
     */
    boolean clear();

    /**
     * 恢复逻辑删除的数据
     * @return
     */
    boolean recover(List<String> ids);

    Page<SysUser> recycleSearch(Page<SysUser> page, @Param("sysUser") SysUser sysUser
            , @Param("startTime")LocalDateTime startTime,@Param("endTime")LocalDateTime endTime);

    List<SysUser> deletedSearch();

}
